//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "poligono.h"
#include "lista.cpp"

//---------------------------------------------------------------------------

#pragma package(smart_init)



void Poligono::draw(){

        glBegin(GL_POLYGON);
        for(int i=1; i<=nVertices;i++){
                glVertex2f(vertices->dameDato(i)->getX(),vertices->dameDato(i)->getY());
        }
        glEnd();


}
